package com.qf.ssm.service.impl;

import com.github.pagehelper.PageHelper;
import com.qf.ssm.mapper.HumituryMapper;
import com.qf.ssm.pojo.Humiture;
import com.qf.ssm.service.HumituryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HumituryServiceImpl implements HumituryService {

    private HumituryMapper humituryMapper;

    @Autowired
    public void setHumituryMapper(HumituryMapper humituryMapper) {
        this.humituryMapper = humituryMapper;
    }

    @Override
    public List<Humiture> findAll() {
        PageHelper.startPage(1,100);
        List<Humiture> humitureList = humituryMapper.findAll();
        return humitureList;
    }
}
